{#**
*
* 功能描述（信息模板）
*
* @author suoya <jlusuoya@gmail.com>
* @version 1
*#}
{#if isset($g_ext) && isset($g_ext['print'])#}
	{#include file="baseheader.tpl"#}
{#else#}
{#include file="header.tpl" title="title" active="prod" curJs="region" #}
{#include file="define.tpl" scope=parent#}
<div class="content middle">
    <div class="ui breadcrumb">
        <a class="section" href="index.php">主页</a>
        <i class="right"></i>
        <a class="section" href="index.php?action=prod.showlist">生产管理</a>
        <i class="right"></i>
        <a class="active section">订单信息</a>
    </div>
    <div class="search">
        <div class="searchTitle">
            订单信息
        </div>
        <div class="searchBar" style=" line-height: normal; padding: 5px;">
        <div class="inputDIV">
		<table class="ui table segment infotable">
		<tr>
			<td>订单号码：{#$data['id']+$orderid_base#}</td>
			<td>订单类型：{#$g_ordertype[$data['type']]#} {#if $data['add_adm'] == 0#}网络订单{#else#}<a href="#" onclick="return showadm({#$data['cofm_adm']#})">电话订单</a>{#/if#}</td>
			<td>下单时间：{#$data['createtime']#}</td>
			<td>订单状态：{#$o_sta[$data['status']]#}</td>
			<td>确认状态：{#if $data['cofm_adm'] == 0#}未确认
				{#else#}<a href="#" onclick="return showadm({#$data['cofm_adm']#})">ID：{#$data['cofm_adm']#}确认</a>{#/if#}</td>
		</tr>
		</table>
		</div>
		</div>
	</div>
    <div class="search">
        <div class="searchTitle">结算信息</div>
        <div class="searchBar" style=" line-height: normal; padding: 5px;">
        <div class="inputDIV">
		<table class="ui table segment infotable">
		<tr>
			<td>订单总价：{#$data['amount_pre']#}</td>
			<td>代金券码：FDDJQ1-FTR5JD-+WP+TM-CD61B4</td>
			<td>代金券抵：{#$data['trade_money1']#}</td>
			<td>积分消耗：0</td>
			<td>积分兑换：{#$data['trade_money2']#}</td>
			<td>实际付款：{#$data['amount']#}</td>
			<td>订单积分：0</td>
		</tr>
		<tr>
			<td>支付类型：{#$p_type[$data['pay_type']]#}</td>
			<td>收款状态：{#if $data['pay_adm'] == 0#}未收款
					{#else#}<a href="#" onclick="return showadm({#$data['pay_adm']#})">收款员ID：{#$data['pay_adm']#}</a>{#/if#}</td>
			<td colspan='4'>交易备注：</td>
		</tr>
		</table>
		</div>
		</div>
	</div>
    <div class="search">
        <div class="searchTitle">配送信息</div>
        <div class="searchBar" style=" line-height: normal; padding: 5px;">
        <div class="inputDIV">
		<table class="ui table segment infotable">
		<tr>
			<td>订货会员：<a href="#" onclick="return showuser({#$data['userid']#})">ID：{#$data['userid']#}</a></td>
			<td>订货电话：{#$data['mobile_from']#}</td>
			<td>收货人：{#$data['consignee']#}</td>
			<td>收货电话：{#$data['mobile_to']#}</td>
			<td>最佳送货：{#$data['delivery_time']#}</td>
		</tr>
		<tr>
			<td>送货方式：{#$g_dely_type[$data['delivery_type']]#}</td>
			<td>邮政编码：{#if $data['zipcode'] != 0#}{#$data['zipcode']#}{#/if#}</td>
			<td>标记建筑：{#$data['sign_building']#}</td>
			<td colspan=2>送货地址：{#$data['area']#}{#$data['address']#}</td>
		</tr>
		<tr>
			<td>配送状态：{#$g_dely_status[$data['delystatus']]#}</td>
			<td>配送员：{#if $data['dely_adm'] != 0#}<a href="#" onclick="return showadm({#$data['dely_adm']#})">ID：{#$data['dely_adm']#}</a>{#/if#}</td>
			<td>开始时间：{#if $data['starttime'] != '0000-00-00 00:00:00'#}{#$data['starttime']#}{#/if#}</td>
			<td>结束时间：{#if $data['finishtime'] != '0000-00-00 00:00:00'#}{#$data['finishtime']#}{#/if#}</td>
			<td>配送备注：{#$data['note']#}</td>
		</tr>
		</table>
		</div>
		</div>
	</div>
    <div class="search">
        <div class="searchTitle">其他信息</div>
        <div class="searchBar" style=" line-height: normal; padding: 5px;">
        <div class="inputDIV">
		<table class="ui table segment infotable">
		<tr>
			<td>发票信息：{#if $data['inv_type'] == 0#}不需要{#else#}
					发票类型：{#$inv_type[$data['inv_type']]#}
					发票抬头：{#$data['inv_title']#}
                {#/if#}
			</td>
			<td>订单留言：{#$data['message']#}</td>
		</tr>
		</table>
		</div>
		</div>
	</div>
    <div class="search">
        <div class="searchTitle">
            订单商品
        </div>
        <div class="searchBar" style=" line-height: normal; padding: 5px;">
        <div class="inputDIV">
		<table class="ui table segment">
		<tr>
			<td>巧克力牌：{#if $data['card1'] == ''#}不需要{#else#}{#$data['card1']#}{#/if#}</td>
			<td>祝福贺卡：{#if $data['card2'] == ''#}不需要{#else#}{#$data['card2']#}{#/if#}</td>
			<td><input type='checkbox' disabled {#if $data['attach1'] == 1#}checked{#/if#} />产品图册</td>
			<td><input type='checkbox' disabled {#if $data['attach2'] == 1#}checked{#/if#} />生日蜡烛</td>
		</tr>
		</table>

        <table id='orderGood' class="ui table segment">
            <thead>
                <tr>
                    <th>商品名称</th>
                    <th>规格</th>
                    <th>价格（￥）</th>
                    <th>折扣</th>
                    <th>数量</th>
                    <th>评价</th>
					<th>生产状态</th>
					<th>完成时间</th>
					<th>提取时间</th>
					<th>提取备注</th>
					<th>生产备注</th>
                </tr>
            </thead>
            <tbody>
                {#foreach $goods as $item#}
                <tr>
                        <td><a titlel='点击查看商品详情' href="{#$web_root['web']#}index.php?action=food.detail&id={#$item['good_id']#}&version={#$item['version']#}" target="_blank">{#$item['name']#}</a></td>
                        <td>{#$item['size']#}</td>
                        <td>{#$item['price']#}</td>
                        <td>{#$item['discount']*10#}折</td>
                        <td>{#$item['cnt']#}</td>
                        <td>{#if $item['comment_id'] != 0#}<a href='#' title='点击查看'>评价</a>{#/if#}</td>
                        <td>{#$g_prod_status[$item['status']]#}</td>
						<td>{#if $item['finishtime'] != '0000-00-00 00:00:00'#}{#$item['finishtime']#}{#/if#}</td>
						<td>{#if $item['taketime'] != '0000-00-00 00:00:00'#}{#$item['taketime']#}{#/if#}</td>
                        <td>{#$item['takeman']#}</td>
                        <td>{#$item['note']#}</td>
                </tr>
                {#/foreach#}
            </tbody>
        </table>
		</div>
		</div>
	</div>
    <div class="search">
        <div class="searchTitle">
            打印预览(未填充数据)
        </div>
{#/if#}
	{#include file="order_print.tpl"#}
{#if isset($g_ext) && isset($g_ext['print'])#}
	{#include file="basefooter.tpl"#}
{#else#}
    <div style="float:right;" class="ui button" onclick="gotoUrl('index.php?action=dely.showlist');">返回</div>
	<div style="float:right;margin: 3px" ></div>
	<div style="float:right;" class="ui button" name="print_page">打印</div>
</div>
	{#include file="footer.tpl" #}
{#/if#}
